@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-6 b-r">   
                            <#input id="appid" name="小程序appid" value="${item.appid}" underline="true"/> 
                            <#input id="userId" name="用户id" value="${item.userId}" underline="true" /> 
                           <#select id="type" value="${item.type}"  name="需求类型" underline="true">
                			@if(item.type == '0'){ 
								<option selected="selected"  value="0">买家需求</option>
								<option value="1">卖家需求</option>   
							@} 
             				@if(item.type =='1'){
								<option  value="0">买家需求</option>
								<option selected="selected" value="1">卖家需求</option> 
							@} 
             				 
							</#select>
                            <#input id="amount" name="金额(圆)" value="${item.amount/100}" />
                             <#input id="buyerDemandId" name="买家需求id" value="${item.buyerDemandId}" underline="true"/>
                             
                </div>

                <div class="col-sm-6"> 
              			 <#input id="appSecret" name="小程序appSecret" value="${item.appSecret}"  underline="true"/>  
              			 <#input id="orderId" name="订单id" value="${item.orderId}" underline="true" readonly="false" />
                		 <#select id="status" value="${item.status}"  name="状态" underline="true">
                			@if(item.status == 0){
								<option selected="selected"  value="0">待支付</option>
								<option value="1">已支付</option>  
								<option value="2">支付失败</option> 
							@} 
             				@if(item.status == 1){
								<option  value="0">待支付</option>
								<option selected="selected" value="1">已支付</option>  
								<option  value="2">支付失败</option> 
							@} 
             				@if(item.status == 2){
								<option value="0">待支付</option>
								<option value="1">已支付</option>  
								<option selected="selected"   value="2">支付失败</option> 
							@} 
							</#select> 
                           <#input id="remarks" name="备注" value="${item.remarks}" underline="true"/> 
                            <#input id="sellerDemandId" name="卖家需求id" value="${item.sellerDemandId}" underline="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="OrderInfoInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="OrderInfoInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/platform/orderInfo/orderInfo_info.js"></script>
@}
